package br.com.troca.carro.facade;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import br.com.troca.carro.dao.EnderecoDAO;
import br.com.troca.carro.vo.Endereco;

@Service
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public class EnderecoFacadeImpl implements EnderecoFacade {

	@Autowired
	private EnderecoDAO enderecoDAO;
	
	public void incluir(Endereco objeto) {
		enderecoDAO.incluir(objeto);
	}

	public void alterar(Endereco objeto) {
		enderecoDAO.alterar(objeto);
	}

	public void excluir(Endereco objeto) {
		enderecoDAO.excluir(objeto);
	}

}
